package shuaihui;

import java.util.Scanner;

public class shuaihui6666 {
	public static void main(String[] args) {

		System.out.println("请输入数据，" + "每输入一个信息用回车键确认！");
		System.out.println("最后输入一个“#”" + "结束输入操作！");
		Scanner reader = new Scanner(System.in);
		while (!reader.hasNext("#")) {
			if (reader.hasNextInt()) {
				int t1 = reader.nextInt();
				if (reader.hasNextInt()) {
					int t2 = reader.nextInt();
					int t3 = t1 + t2;
					System.out.println("整数相加：" + t3);
				} else if (reader.hasNextFloat()) {
					float t6 = reader.nextFloat();
					float t7 = t1 + t6;
					System.out.println("整数与小数相加：" + t7);
				} else {
					String t4 = reader.next();
					String t5 = t1 + t4;
					System.out.println("整数与字符串相加：" + t5);
				}
			} else if (reader.hasNextFloat()) {
				float f1 = reader.nextFloat();
				if (reader.hasNextInt()) {
					int f6 = reader.nextInt();
					float f7 = f1 + f6;
					System.out.println("小数与整数想加：" + f7);
				} else if (reader.hasNextFloat()) {
					float f2 = reader.nextFloat();
					float f3 = f1 + f2;
					System.out.println("小数相加：" + f3);
				} else {
					String f4 = reader.next();
					String f5 = f1 + f4;
					System.out.println("小数与字符串相加：" + f5);
				}
			} else if (reader.hasNext()) {
				String str1 = reader.next();
				if (reader.hasNextInt()) {
					int str4 = reader.nextInt();
					System.out.println("字符串与整数相加：" + str1 + str4);
				} else if (reader.hasNextFloat()) {
					float str5 = reader.nextFloat();
					System.out.println("字符串与小数相加：" + str1 + str5);
				} else {
					String str2 = reader.next();
					String str3 = str1 + str2;
					System.out.println("字符串相加：" + str3);
				}
			}
		}
	}

}
